#!/usr/bin/env python
# -*- coding:UTF-8 -*-
# Project: devops
#  Author: an00
#  Create: 2018/7/22 16:01

"""
用户和组管理的URL定义
"""

from rest_framework.routers import DefaultRouter
from users.views import (UserInfoViewset, UserViewset, GroupsViewset,
                         UserGroupViewset, GroupMembersViewset)

user_group_router = DefaultRouter()
user_group_router.register("users", UserViewset, base_name='user')
user_group_router.register("userinfo", UserInfoViewset, base_name='userinfo')

user_group_router.register("groups", GroupsViewset, base_name='groupinfo')
user_group_router.register("usergroups", UserGroupViewset, base_name='usergroups')
user_group_router.register("groupmembers", GroupMembersViewset, base_name='groupmember')
